import request from '@/utils/request'

// 查询产品销售出库行列表
export function listSaleline(query) {
  return request({
    url: '/saleline/saleline/list',
    method: 'get',
    params: query
  })
}

// 查询产品销售出库行详细
export function getSaleline(lineId) {
  return request({
    url: '/saleline/saleline/' + lineId,
    method: 'get'
  })
}

// 新增产品销售出库行
export function addSaleline(data) {
  return request({
    url: '/saleline/saleline',
    method: 'post',
    data: data
  })
}

// 修改产品销售出库行
export function updateSaleline(data) {
  return request({
    url: '/saleline/saleline',
    method: 'put',
    data: data
  })
}

// 删除产品销售出库行
export function delSaleline(lineId) {
  return request({
    url: '/saleline/saleline/' + lineId,
    method: 'delete'
  })
}
